package com.rfid.project.model;

import javax.persistence.*;

import biz.core.KeyValue;
import biz.util.KeyValueUtil;
import biz.util.StringUtil;
import biz.core.IdEntity;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

//岗位权限关系
@Entity
public class PositionAuthority extends IdEntity{

  
  //岗位
  @ManyToOne
  @JoinColumn(name="PositionID")
  private Position position ;
  
  
  //权限
  @ManyToOne
  @JoinColumn(name="AuthorityID")
  private Authority authority ;
  
  
  public Position getPosition(){
  	return position;
  }
  
  public void setPosition(Position position){
			this.position = position;  
  }
  
  public Authority getAuthority(){
  	return authority;
  }
  
  public void setAuthority(Authority authority){
			this.authority = authority;  
  }
  

}
	
